package com.dianban.service.impl;


import com.dianban.dao.FacePayConfigDao;
import com.dianban.dao.WxUserDao;
import com.dianban.entity.FacePayConfig;
import com.dianban.entity.WxUser;
import com.dianban.service.FacePayConfigService;
import com.dianban.service.WxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

/**
 * 用户业务实现层
 *
 */
@Service
@Transactional(readOnly = true)
public class FacePayConfigServiceImpl implements FacePayConfigService {

    @Autowired
    private FacePayConfigDao facePayConfigDao;

    @Override
    public List<FacePayConfig> find(Integer type, Integer status, Long storeId) {
        return facePayConfigDao.find(type,status,storeId);
    }

    @Override
    public int updateState(Long id, Integer status, Date startTime) {
        return facePayConfigDao.updateState(id,status,startTime);
    }

    @Override
    public FacePayConfig findByName(String name) {
        return facePayConfigDao.findByName(name);
    }
}
